<div class="site-logo">
   	<a href="/" title="<?=$this->imageene->get_config('site_url')?>">
   		<img src="/images/template/logo.png" width="212" height="52" 
   			 alt="<?=$this->imageene->get_config('site_url')?>" 
   			 title="<?=$this->imageene->get_config('site_url')?>"/>
   	</a>
</div>

<div class="user-menu">    
	<div class="login">
   		<?php if($this->tank_auth->is_logged_in()): ?>
    		<span class="margin-right"><?=lang('label_header_logged_in_as')?> <span class="italic strong"><?=$this->tank_auth->get_username()?></span></span>
    		<span class="margin-right"><a href="/auth/logout/"><?=lang('label_header_logout')?></a></span> 
    	<?php else: ?>
    		<span class="margin-right"><a class="cursor" href="/auth/login/" id="user-login-button"><?=lang('label_header_login')?></a></span>
    		<span class="margin-right"><a href="/auth/register/" class="cursor" id="user-registration-button"><?=lang('label_header_create_an_account')?></a></span>
    	<?php endif; ?>
    </div> 	
    <div class="lang">
		<a href="/en" class="margin-flag"><img src="/images/template/icon/icon-lang-en.png" alt="English" title="Imageene in English" /></a>
		<a href="/es" class="margin-flag"><img src="/images/template/icon/icon-lang-es.png" alt="Espa&ntilde;ol" title="Imageene en Espa&ntilde;ol" /></a>
		<a href="/fr" class="margin-flag"><img src="/images/template/icon/icon-lang-fr.png" alt="Fran&ccedil;ais" title="Imageene en Fran&ccedil;ais" /></a>    
	</div>       
</div>

<div class="menu">
	<ul>
		<li class="home margin-right"><a href="/home" title="home"><?=lang('label_menu_home')?></a></li>
		<li class="blog margin-right"><a href="/blog" title="blog"><?=lang('label_menu_blog')?></a></li>
		<li class="explore margin-right"><a href="/explore" title="explore"><?=lang('label_menu_explore')?></a></li>
		<li class="ngos margin-right"><a href="/ngos" title="ngo's"><?=lang('label_menu_ngos')?></a></li>
		<li class="about <? if($this->tank_auth->is_logged_in()) { echo "margin-right"; } ?>"><a href="/about" title="about us"><?=lang('label_menu_about')?></a></li>
		<? if($this->tank_auth->is_logged_in()) : ?><li class="user"><a href="/user/cpanel" title="user's control panel" class="orange"><?=lang('label_menu_my_account')?></a></li><? endif; ?>
	</ul>
</div>

<script type="text/javascript">
	$(".menu li").hover(
		function () {
			$(this).addClass("hover");
		},
		function () {
			$(this).removeClass("hover");
		}
	);

	//$(".menu li").removeClass("selected");
	$(".menu li.<?=$this->uri->segment(1)?>").addClass("selected");
</script>